package com.ymatou.iapi.userservice.service;

import java.util.HashMap;
import java.util.Map;

import org.json.JSONException;
import org.json.JSONObject;

import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.EnvSetup;
/**
*解锁用户接口Call
*FreeMaker Template自动生成代码
*/
public class UserLockStatusRequestDtoCall extends YmatouBaseCall{
	private static String opurl ="json/reply/UserLockStatusRequestDto";
	
	public UserLockStatusRequestDtoCall() {
		super(EnvSetup.getSystemUrl("userservice_iapi"),opurl,"GET","PARAM");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	
	public Map<String, String> getResult(){
		Map<String, String> userStatus = new HashMap<String, String>();
		try{
			userStatus =(Map) FormatUtil.GSONToObject(new JSONObject(getReturnData()).getString("Result"), Map.class);
			
		}catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return userStatus;
	}
}